package com.pinancial.common.constants;

import lombok.Getter;

/**
 * @author: 周未
 * @Description:
 * @create 13:25 2019/12/31
 */
@Getter
public enum ResultCodeEnum {
	SUCCESS(true, 20000,"成功"),
	FAILURE(false,10000,"失败"),
	UNKNOWN_REASON(false, 20001, "未知错误"),
	BAD_SQL_GRAMMAR(false, 21001, "sql语法错误"),
	JSON_PARSE_ERROR(false, 21002, "json解析异常"),
	PARAM_ERROR(false, 21003, "参数不正确"),
	FILE_UPLOAD_ERROR(false, 21004, "文件上传错误"),
	EXCEL_DATA_IMPORT_ERROR(false, 21005, "Excel数据导入错误"),
	USERLOGIN_INVALID_ERROR(false, 21007,"登录信息过期，请重新登录"),
	USERUNLOGIN_ERROR(false, 21008,"用户未登录，请重新登录"),
	VIDEO_UPLOAD_ALIYUN_ERROR(false, 21009,"视频上传云服务器失败"),
	VIDEO_UPLOAD_TOMCAT_ERROR(false, 21010,"视频上传缓存服务器失败"),
	VIDEO_DELETE_ALIYUN_ERROR(false, 21011,"视频删除失败"),
	FETCH_VIDEO_PLAYAUTH_ERROR(false,21012,"获取视频上传地址和凭证失败"),
	URL_ENCODE_ERROR(false,21013,"地址编码失败"),
	ILLEGAL_CALLBACK_REQUEST_ERROR(false,21014,"不合法的回调请求"),
	FETCH_ACCESSTOKEN_FAILD(false,21015,"获取令牌失败"),
	FETCH_USERINFO_ERROR(false,21016,"获取用户信息错误"),
	TOKEN_IS_NOT_PASSED(false,21017,"token没有传递"),
	PICTURE_OVER_MAX(false,-9998,"图片最多只能8张");

	private Boolean success;
	private Integer code;
	private String message;

	private ResultCodeEnum(Boolean success, Integer code, String message) {
		this.success = success;
		this.code = code;
		this.message = message;
	}
}